package com.jxc.moblienumber.message;

import java.util.Scanner;

public class MobileNumber {
    private String username;
    private long phone_number;
    private int area_num = 86;

    void set_user(){
        System.out.println("请输入你的姓名：");
        username = new Scanner(System.in).next();
        System.out.println("请输入你的电话号码：");
        phone_number = new Scanner(System.in).nextLong();
        System.out.println("-------------输入成功--------------");


        System.out.println("你的姓名是:"+username);
        System.out.println("你的电话号码是:"+phone_number);
        System.out.println("默认的国家区号是："+area_num);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
